import request from '@/utils/request'
import { da } from 'element-plus/es/locales.mjs'

// 查询账套列表列表
export function getDefaultAccount() {
  return request({
    url: '/base/accountSet/getDefaultAccountSet',
    method: 'get'
  })
}


// 查询账套列表列表
export function listAccountSet(query) {
  return request({
    url: '/base/accountSet/list',
    method: 'get',
    params: query
  })
}

// 查询账套列表详细
export function getAccountSet(accountId) {
  return request({
    url: '/base/accountSet/' + accountId,
    method: 'get'
  })
}

// 查询行业列表信息
export function getIndustryAll() {
  return request({
    url: '/base/accountSet/getIndustryAll',
    method: 'get'
  })
}

// 新增账套列表
export function addAccountSet(data) {
  return request({
    url: '/base/accountSet',
    method: 'post',
    data: data
  })
}

// 修改账套列表
export function updateAccountSet(data) {
  return request({
    url: '/base/accountSet',
    method: 'put',
    data: data
  })
}
// 修改默认账套状态
export function chaneDefaultStatus(data) {
  return request({
    url: '/base/accountSet/chaneDefaultStatus/'+data,
    method: 'post'
  })
}

// 删除账套列表
export function delAccountSet(accountId) {
  return request({
    url: '/base/accountSet/' + accountId,
    method: 'delete'
  })
}
